package com.ts.content.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ts.content.dto.TopicDTO;
import com.ts.content.entity.PostEntity;
import com.ts.content.entity.TopicEntity;
import net.sf.jsqlparser.statement.select.Top;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TopicDao extends BaseMapper<TopicEntity> {

    public IPage getTopicList(IPage<TopicDTO> page);

    public IPage getCurrentUserTopicById(@Param("id") Integer id, IPage<TopicEntity> page);

}
